import request from '@/utils/request'

// 列表
export function billSummaryList(data) {
  return request({
    url: '/reimbursement/summary/list',
    method: 'get',
    params: data
  })
}

// 新增
export function billSummaryAdd(data) {
  return request({
    url: '/reimbursement/summary',
    method: 'post',
    data: data
  })
}

// 查看
export function billSummaryGet(id) {
  return request({
    url: '/reimbursement/summary/' + id,
    method: 'get'
  })
}

// 修改
export function billSummaryEdit(data) {
  return request({
    url: '/reimbursement/summary',
    method: 'put',
    data: data
  })
}

// 审批
export function billSummaryApproval(data) {
  return request({
    url: '/reimbursement/summary/approval',
    method: 'post',
    data: data
  })
}

// 删除
export function billSummaryDel(id) {
  return request({
    url: '/reimbursement/summary/' + id,
    method: 'delete'
  })
}